package com.zgkxzx.sedapt;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

import com.zgkxzx.shareutil.SpUtil;


public class MainActivity extends AppCompatActivity {

    private TextView tvValue;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


        SpUtil.init("zgkxzx");
        tvValue = (TextView) findViewById(R.id.tv_value);

//
        StudentSDO.putAge(this, 12);
        StudentSDO.putSex(this, true);
        StudentSDO.putNo(this, "031041218");



////你好
        UserInfo userInfo = UserInfoSDO.get(this,null);

        tvValue.setText( " 性别 " + userInfo);

    }
}
